﻿using Jimmy.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Jimmy.LogHelperSample
{
    class Program
    {
        static void Main(string[] args)
        {
            #region LogHelper
            string str = "测试";
            try
            {
                int intStr = int.Parse(str);
            }
            catch (Exception ex)
            {
                LogHelper.Error("Main", ex);
                LogHelper.Error(new LogMessage { Message = "Main" }, ex);
            }
            #endregion
            #region Abstract Class
            //Cat cat = new Cat();
            //cat.Eat();
            #endregion

            Console.ReadKey();
        }
    }
    public abstract class Animal
    {
        public string Color { set; get; }   
        public void Eat()
        {
            Console.WriteLine("动物吃东西");
        }
    }
    public class Cat:Animal
    {
        public new void Eat()
        {
            Console.WriteLine("猫吃东西");

        }
    }

}
